<?php

class Application_Model_Langue extends Zend_Db_Table_Abstract {
	
		protected $_name = 'langue';
		
		public function fetchAlldata()
		{
			$select = $this->select();
			$select->from($this);
			return $this->fetchAll($select);
		}
		
		public function fetchbyId($id)
		{
			$select = $this->select();
			$select ->setIntegrityCheck(false)
					->from($this)
				    ->where('type_id = ?', $id);
			return $this->fetchRow($select);
		}

}
?>